<?php 
/*************************************************************************************
 * config.example.php
 * -----------
 * phpGMapTrips 
 * 
 * This php application allows you to easily record your travel destinations 
 * and display them with Google maps.
 * 
 * Author: Stephane Coste (lescoste@gmail.com)
 * Copyright: (c) 2006 Stephane Coste (http://lescoste.net/)
 * Release Version: 0.1
 * CVS Revision Version: $Revision: 1.14 $
 * Date Started: 2006/02/19
 * Last Modified: $Date: 2007/03/17 08:41:58 $
 *
 *************************************************************************************
 *
 *     This file is part of phpGMapTrips.
 *
 *   phpGMapTrips is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   phpGMapTrips is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with phpGMapTrips; if not, write to the Free Software
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 ************************************************************************************/
?>
<?php 
// Configuration file

// google map key
// to get one go to http://www.google.com/apis/maps/
$gmapKey = ""; // enter your google map key here
$yahooKey = ""; // enter your yahoo map key here

// loads the proper language file
$default_langue = "en"; // default language
// list of all available languages
$auth_langues = array (
"en" => "English", 
"fr" =>"Francais",
"it" =>"Italiano"
); 
$langue = urldecode($_GET["langue"]);
if (empty($langue)) { $langue = $default_langue; }
if (!array_key_exists($langue, $auth_langues)) { $langue = $default_langue; } // security check
$extramapsNames = array();
include_once("lang_".$langue.".php");
	
// page title
$title = "phpGMapTrips";

// default trip
$default_trip = "";

// coordinate of initial place, here paris,france
$default_lat = "48.77832281861946";
$default_lng = "2.315164804458618";

// default Map type for the big map (mapzoom)
// possible values are : NORMAL_MAP SATELLITE_MAP HYBRID_MAP
$default_mapzoom_mapType = "HYBRID_MAP"; 
// default Map type for the small map on the bottom left (map)
$default_map_mapType = "SATELLITE_MAP"; 
// default Map type for the small map on the bottom right (overview map)
$default_omap_mapType = "HYBRID_MAP"; 
// default Map type for the gadget map
$default_mapgadget_mapType = "HYBRID_MAP"; 

// xml file dynamic fields
$moreinfoNames = array("date", "address", "referer");

// extra maps
// extra maps translated names are in the language files
$extramaps = array();
// you can hide/show a map by commenting or not its array_push command :
array_push($extramaps, "visitors");
//array_push($extramaps, "gallery");

$extramapsParams = array();
$extramapsParams[ "defaultTrip_"."visitors"] = "France";

$extramapsParams[ "plugindb"."visitors"] = "dbgxml"; // which db plugin do we use for this map
$extramapsParams[ "editable"."visitors"] = true; // are the map places editable ?
//$extramapsParams[ "plugindb"."gallery"] = "dbgallery"; // which db plugin do we use for this map
//$extramapsParams[ "editable"."gallery"] = false; // are the map places editable ?


// print page footer
function printFooter() {
	 ?>
	 <div id="footer">
	 <a href="http://lescoste.homeip.net/blog/phpgmaptrips/" title="Powered by phpGMapTrips" >Powered by phpGMapTrips</a>
	 </div>
 <?php 
}

// enter a login/password to allow for trips edition
$cfgLogin[1] = 'admin';                        // login word
$cfgPassword[1] = 'admin';                     // password

?>